import request from '@/utils/request'

// 查询管理列表
export function listStore(query) {
  return request({
    url: '/ruoyi-manage/store/list',
    method: 'post',
    data: query
  })
}

export function byName(data) {
  return request({
    url: '/ruoyi-manage/store/byName',
    method: 'post',
    params: {name:data}
  })
}


export function Selectclass() {
  return request({
    url: '/ruoyi-manage/store/Selectclass',
    method: 'get',
  })
}
export function SelectLeader(id) {
  return request({
    url: '/ruoyi-manage/store/SelectLeader',
    method: 'get',
    params:{id:id}
  })
}
export function updateStore(data) {
  return request({
    url: '/ruoyi-manage/store/updateStore',
    method: 'post',
    data: data
  })
}

